<template>
    <div class="examResults_box animated fadeInUp">
        <div class="examResults_title">
            <p>{{ dataList.list.title }}</p>
        </div>
        <div class="examResults_content">
            <li>
                <div>
                    <p>考试得分</p>
                    <p>{{ score }}
                        <span>分</span>
                    </p>
                </div>
                <div>
                    <p>考试用时</p>
                    <p>
						{{time.slice(3,8)}}
                        <!-- {{ util.date('i:s', time)  }} -->
                        <!-- <span>分钟</span> -->
                    </p>
                </div>
            </li>
            <div>
				<button class="again" @click="again">再考一次</button>
				<!-- <button class="look" @click="looklook">查看本次考题（红色表示错误答案）</button> -->
			</div>
        </div>
    </div>
</template>

<script setup>
// ResultsId
    import {useRouter} from 'vue-router'
    import { onBeforeMount ,reactive,ref} from 'vue';
    import axios from "axios";
    import util from '@/utils/util.js'
    const $myemit=defineEmits(['again'])
    const props = defineProps({
        score:Number,
		time:String
})
    const router = useRouter()
    const dataList = reactive({
        list:''
    })
    const again = () => {
		
        $myemit('again',true)
    }
	const looklook = () => {
		$myemit('looklook',true)
		
	}
    onBeforeMount(()=> {})
</script>

<style lang="scss" scoped>
	
	.look{
		width: 316px;
		height: 37px;
		background: #E50101;
		border-radius: 100px;
		font-size: 16px;
		font-weight: 600;
		color: #FFFFFF;
		border: 0;
		margin-left: 40px;
	}
	.again{
	    margin-top: 80px;
	    width: 144px;
	    height: 37px;
	    line-height: 37px;
	    background: #FF9933;
	    border-radius: 37px;
	    font-size: 16px;
	    font-weight: 600;
	    color: #FFFFFF;
	    text-align: center;
	    border: none;
	}
	
@media screen and (min-width:1200px){
    .examResults_box{
        width: 1000px;
        height: 500px;
        background: #F3FCFF;
        margin: 0 auto;
        margin-top: 40px;
        margin-bottom: 60px;
        .examResults_title{
            width: 1000px;
            background: #1CABD9;
            border-radius: 10px 10px 0;
            p{
                height: 77px;
                line-height: 77px;
                font-size: 20px;
                // font-weight: 600;
                color: #FFFFFF;
                text-align: center;
            }
        }
        .examResults_content{
            width: 1000px;
            height: 423px;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding-top: 80px;
            background-color: #F3FCFF;
            
            li{
                display: flex;
                div{
                    display: flex;
                    width: 214px;
                    height: 70px;
                    border-radius: 10px 10px 10px 10px;
                    border: 1px solid #FF9933;
                    margin: 0 25px;
                    p{
                        width: 120px;
                        height: 70px;
                        line-height: 70px;
                        font-size: 20px;
                        text-align: center;
                        font-family: Microsoft YaHei-Regular, Microsoft YaHei;
                        font-weight: 400;
                        color: #333333;
                    }
                    p:last-child{
                        width: 94px;
                        color: #FFFFFF;
                        font-size: 30px;
                        background-color: #FF9933;
                        border-radius: 0 10px 10px 0;
                        span{
                            font-size: 15px;
                        }
                    }
                }
            }
            
        }
    }
}
@media screen and (max-width: 1200px) {
    
    .examResults_box{
        padding: 4vw;
        .examResults_title{
            width: 95vw;
            background: #1CABD9;
            border-radius: 1.2vw 1.2vw 0;
            p{
                height: 10vw;
                line-height: 10vw;
                font-size: 2.26vw;
                // font-weight: 600;
                color: #FFFFFF;
                text-align: center;
            }
        }
        .examResults_content{
            width: 95vw;
            height: 40vw;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding-top: 8vw;
            background-color: #F3FCFF;
            
            li{
                display: flex;
                div{
                    display: flex;
                    width: 28vw;
                    height: 9vw;
                    border-radius: 1.2vw;
                    border: 1px solid #FF9933;
                    margin: 0 3vw;
                    p{
                        width: 16vw;
                        height: 9vw;
                        line-height: 9vw;
                        font-size: 2.6vw;
                        text-align: center;
                        font-family: Microsoft YaHei-Regular, Microsoft YaHei;
                        font-weight: 400;
                        color: #333333;
                    }
                    p:last-child{
                        width: 12vw;
                        color: #FFFFFF;
                        font-size: 4vw;
                        background-color: #FF9933;
                        border-radius: 0 1.2vw 1.2vw 0;
                        span{
                            font-size: 2vw;
                        }
                    }
                }
            }

        }
    }
}

</style>